<template>
  <component :is="loginCmp"/>
</template>
<script>
import {mapState} from "vuex";
export default {
  name: 'LoginCmp',
  components: {
    LoginOld: ()=>import('./loginOld/index'),
    LoginNew: ()=>import('./loginNew/index'),
  },
  data() {
    return {}
  },
  computed: {
    ...mapState({ frontParam: (state) => state.common.frontParam }),
    loginCmp() {
      const map ={
        default: 'LoginNew',
        legacy: 'LoginOld'
      }
      return this.frontParam.loginPageStyle? map[this.frontParam.loginPageStyle] : 'LoginNew';
    }
  },
}
</script>

<style scoped lang="scss">

</style>
